#include <iostream>
#include <unistd.h>
#include <stdlib.h>

using namespace std;

int main()
{
  int i = 0;
  for(i = 0;i<5;i++)
  {
    cout <<"------------------------------------------------------------------------------";
    cout << "我是myproc文件下的porc，我的pid是：" << getpid() << endl;               
    cout << "MYENV:" << (getenv("MYENV") == NULL ? "NULL" : getenv("MYENV")) << endl;
    cout << "PATH :" << (getenv("PATH") == NULL ? "NULL" : getenv("PATH")) << endl;
    cout <<"------------------------------------------------------------------------------";
    sleep(1);
  }
  return 0;
}
